<script setup lang="ts">
import { mapStore } from '@/stores/worldMap'
// import chianPoint from ''
const changeMap = () => {
  console.log('changeMap')
  mapStore().setMapType(false)
}
</script>

<template>
  <div class="map">
    <!-- 返回按钮 -->
    <el-button type="primary" class="map-btn" @click="changeMap">
      {{ $t('bi_front_distributorback') }}
    </el-button>
    <div class="map-box">
      <div class="point point-bj">
        <p>北京</p>
        <p>99.99万</p>
      </div>
      <div class="point point-tj">
        <p>天津</p>
        <p>99.99万</p>
      </div>

      <img
        src="@/assets/images/china/chinaMap.png"
        class="china-map-img"
        alt="china-map"
      />
    </div>
  </div>
</template>
<style lang="scss" scoped>
.map {
  position: relative;
  z-index: 11;
  width: 100%;
  height: 100%;
  text-align: center;
  .map-btn {
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 12;
    background-color: rgba(11, 69, 202, 0.8);
  }
  .map-box {
    position: relative;
    .point {
      position: absolute;
      top: 50%;
      left: 50%;
      background-color: rgba(0, 0, 0, 0.4);
      padding: 3px;
      border: 1px solid #15b7ea;
      border-radius: 3px;
      color: #15b7ea;
      font-size: 12px;
      &-bj {
        // transform: translate(-50%, -50%);
        top: 40%;
        left: 60%;
      }
      &-tj {
        // transform: translate(-50%, -50%);
        top: 43%;
        left: 65%;
      }
    }
    .china-map-img {
      width: 80%;
      // height: 100%;
    }
  }
}
</style>
